package test;

public class IntegerTest1 {
	public static void main(String[] args) {
		test1();
	}

	/**
	 * true false 自动装箱类似于Integer.valueOf,有缓存
	 */
	public static void test1() {
		Integer a = 1;
		Integer b = 1;
		System.out.println(a == b);
		Integer a2 = 1000;
		Integer b2 = 1000;
		System.out.println(a2 == b2);
	}
}
